package br.com.boardnaveia.action.helper;

import com.google.appengine.api.users.User;
import com.google.appengine.api.users.UserService;
import com.google.appengine.api.users.UserServiceFactory;
import com.opensymphony.xwork2.ActionSupport;

public abstract class BaseAction extends ActionSupport {

	/**
	 * 
	 */
	private static final long serialVersionUID = -4322706551142570325L;

	protected User getUsuario(){
		
		UserService userService = UserServiceFactory.getUserService();
		
		return userService.getCurrentUser();
		
	}
	
	protected boolean isEmpty(String valor){
		return valor == null || valor.equals("");
	}
	
}
